package com.bella.springcloud.service.impl;/**
 * @program: cloud2022
 * @description:
 * @packagename: com.bella.springcloud.service.impl
 * @author: Bella白
 * @date: 2022-08-31 17:33
 **/

import com.bella.springcloud.dao.PaymentDao;
import com.bella.springcloud.entities.Payment;
import com.bella.springcloud.service.PaymentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author: bella白
 * @Title: PaymentServiceImpl
 * @ProjectName: cloud2022
 * @Description:
 * @date: 2022/8/31 17:33
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;
    public int create(Payment payment){
        return paymentDao.create(payment);
    }
    public Payment getPaymentById(@Param("id") Long id){
        return paymentDao.getPaymentById(id);
    }
}
